package drg_group.wuhan_2022.ADRG;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import drg_group.wuhan_2022.Base;
import drg_group.wuhan_2022.MedicalRecord;
import drg_group.wuhan_2022.DRG.MDCF_DRG;

public class FN1 {
    public static String group(MedicalRecord record){
        String[] adrg_zd={};
        String[] adrg_zd1={};
        String[] adrg_ss={"00.0102","00.0300","00.5500x009","00.5500x011","00.5500x012","00.5500x013","00.5500x014","00.5500x017","00.5502","00.5800","00.6000","07.4200x002","17.5600x001","38.0603","38.1604","38.2200","38.2300","38.2500","38.2601","39.5000x024","39.5000x027","39.5000x029","39.5000x030","39.5000x031","39.5000x032","39.5001","39.5002","39.5004","39.5005","39.5008","39.5009","39.5011","39.5013","39.5014","39.5015","39.5016","39.5300x010","39.5900x026","39.5900x027","39.5900x028","39.5900x029","39.5900x033","39.5900x034","39.7200x004","39.7200x005","39.7200x018","39.7202","39.7203","39.7209","39.7300x006","39.7400x002","39.7400x004","39.7604","39.7800x005","39.7900x007","39.7900x009","39.7900x011","39.7900x013","39.7900x017","39.7900x019","39.7900x020","39.7900x021","39.7900x025","39.7900x027","39.7900x028","39.7900x030","39.7900x031","39.7900x032","39.7900x034","39.7900x036","39.7900x038","39.7900x040","39.7900x042","39.7900x044","39.7900x045","39.7900x047","39.7900x049","39.7900x051","39.7900x052","39.7900x053","39.7900x054","39.7900x055","39.7900x056","39.7900x057","39.7900x058","39.7900x059","39.7900x060","39.7900x061","39.7900x062","39.7900x063","39.7900x064","39.7900x065","39.7900x066","39.7900x067","39.7900x068","39.7900x069","39.7900x070","39.7900x075","39.7900x077","39.7900x078","39.7900x301","39.7900x625","39.7900x626","39.7900x801","39.7901","39.7902","39.7903","39.7904","39.7905","39.7906","39.7907","39.7910","39.9000","39.9000x010","39.9000x017","39.9000x019","39.9000x020","39.9000x021","39.9000x022","39.9000x023","39.9000x024","39.9000x025","39.9000x027","39.9000x028","39.9000x029","39.9000x030","39.9000x031","39.9000x034","39.9000x036","39.9000x037","39.9000x039","39.9000x040","39.9000x041","39.9001","39.9004","39.9007","39.9008","39.9009","39.9011","39.9012","39.9013","39.9015","39.9016","39.9100x004","39.9100x006","39.9100x009","88.4400x001","88.4402","88.4403","88.4404","88.4405","88.4500","88.4600","88.4700x001","88.4700x002","88.4701","88.4702","88.4703","88.4704","88.4705","88.4706","88.4707","88.4800x005","88.4800x006","88.4801","88.4900x005","88.4900x006","88.4900x007","88.4901","88.4902","88.4903","88.4904","99.1000x007","99.1000x009","99.1001","99.1002","99.1004"};
        String[] adrg_ss1={};
        
        if (true && record.ssList!=null && record.ssList.length>0 && Base.contains(adrg_ss,record.ssList[0])){
            Base.groupMessages.putMessage(record.Index,"符合FN1入组条件，匹配规则：主手术匹配");
                
            if (MDCF_DRG.FN19_group(record)){
                return "FN19";
            }

            return "FN1";
        }else{
            return "";
        }
    }
}

